<div class="panel panel-default panel-intro">
    {:build_heading()}

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        {:build_toolbar('refresh')}
                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover" width="100%">

                    </table>

                </div>
            </div>

        </div>
    </div>
</div>

<script id="customformtpl" type="text/html">
    <!--form表单必须添加form-commsearch这个类-->
<form action="" class="form-commonsearch">
    <div style="border-radius:2px;margin-bottom:10px;background:#f5f5f5;padding:15px 20px;">
    
        <div class="row">
            <div class="col-xs-12 col-sm-6 col-md-2">
                <div class="form-group">
                    <label class="control-label">用户名</label>
                    <!--显式的operate操作符-->
                    <div class="input-group">
                        <input id="c-username"  class="form-control " name="user.username" type="text"
                                   value="" >
                        <input type="hidden" class="operate" data-name="user.username" value="LIKE"/>

                    </div>
                </div>
            </div>
            <div class="col-xs-12 col-sm-6 col-md-2">
                <div class="form-group">
                    <label class="control-label">身份</label>
                    <!--显式的operate操作符-->
                    <div class="input-group">
                        <input id="c-group_id" data-source="user/group/index" data-params='{"custom[id]":["lt","4"]}' data-primary-key="id"
                                   data-field="name" class="form-control selectpage" name="group_id" type="text"
                                   value="" style="display:block;">
                        <input type="hidden" class="operate" data-name="group_id" value="="/>
                    </div>
                </div>
            </div>
            <div class="col-xs-12 col-sm-6 col-md-6">
                <div class="form-group">
                    <label class="control-label">分类</label>
                    <div class="row" data-toggle="cxselect" data-selects="first_cate,two_cate,region_id">
                        <div class="col-xs-4">
                            <select class="first_cate form-control" name="first_cate"
                                data-url="goods/category/group"></select>
                        </div>
                        <input type="hidden" class="operate" data-name="first_cate" value="="/>

                        <div class="col-xs-4">
                            <select class="two_cate form-control" name="two_cate" data-url="goods/category/group"
                                data-query-name="pid"></select>
                        </div>
                        <input type="hidden" class="operate" data-name="two_cate" value="="/>

                        <div class="col-xs-4">
                            <select class="region_id form-control" name="region_id" data-url="goods/category.region/group"
                                data-query-name="pid"></select>
                        </div>
                        <input type="hidden" class="operate" data-name="region_id" value="="/>

                    </div>
                   
                </div>
            </div>
          
            <div class="col-xs-12 col-sm-6 col-md-2">
                <div class="form-group">
                    <label class="control-label">时间</label>
                    <input type="hidden" class="operate" data-name="time" value="RANGE" />
                    <div>
                        <input type="text" class="form-control datetimerange" name="time" value="" />
                    </div>
                </div>
            </div>
            <div class="col-xs-12 col-sm-6 col-md-2">
                <div class="form-group">
                    <label class="control-label">邀请码</label>
                    <!--显式的operate操作符-->
                    <div class="input-group">
                        <input id="c-qr_code"  class="form-control " name="user.qr_code" type="text"
                                   value="" >
                        <input type="hidden" class="operate" data-name="user.qr_code" value="LIKE"/>

                    </div>
                </div>
            </div>
            <div class="col-xs-12 col-sm-6 col-md-2">
                <div class="form-group">
                    <label class="control-label">&nbsp;</label>
                    <div class="row">
                        <div class=" col-xs-6">
                            <input type="submit" class="btn btn-success btn-block" value="提交" />
                        </div>
                        <div class="col-xs-6">
                            <input type="reset" class="btn btn-primary btn-block" value="重置" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</form>
</script>